import React from 'react'
import { BrowserRouter as Router, Route, Redirect} from "react-router-dom";
import Login from './Login'
import AdminIndex from './AdminIndex'
function Main(){
  return (
    <Router>
      <Route path="/login/" exact component={Login}></Route>
      {/* <Route path="/" render={() => (
        <Redirect to='/index/' />
      )} /> */}
      <Route path="/index/" component={AdminIndex}></Route>
    </Router>
  )
}

export default Main